dyne / Zenroom

Embedded no-code VM executing human-like language to manipulate data and process cryptographic operations.
https://dev.zenroom.org
GNU Affero General Public License v3.0
194 stars 64 forks source link

Keyring should have a fix encoding #833

Open matteo-cristino opened 7 months ago

matteo-cristino commented 7 months ago

Some keys in the keyring follow the CONF encoding during the output phase:

https://github.com/dyne/Zenroom/blob/d08d5162facbf3f6bf8d4bdcee5c4c72fff121cd/src/lua/zencode_keyring.lua#L186-L190

while in the input there is only a fixed encoding (for the above is base64). I think that generally it is better if the keyring encoding is fixed, so that we are alsways sure with what type of encoding we have to load the key.

jaromil commented 6 months ago

In cass we fix the encoding then base64 is preferred as requiring less changes, also is the most interoperable from shell scripts.