简体   繁体   中英

How do I encrypt nerves project files on memory card?

When I burn memory card by mix.burn. Anybody can read content of my card by simple usb reader. I have sensitive keys and authentication credentials on memory. how do I encrypt or obfuscate the card?

Nerves supports encrypted filesystems through the Linux kernel (corrected).

Raspberry Pi is not a platform I would consider appropriate for shipping to production as a product without some physical protection. It can still be useful for prototyping, though. For production, you would typically move to a more hardened platform with onboard flash.

Even then however, you should avoid baking authentication credentials into your firmware. Look into certificate-based authentication where certificates are provisioned to each device during or prior to production.

If that's too heavy handed then look into using access tokens through OAuth 2.0 which can be used as a proxy for credentials and revoked independently of them. This will require more interaction from the end user, so that's a tradeoff you would need to consider.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM