- Edited
Hello,
Please add content warnings or spoiler block(s) as necessary, thank you.
As per the title, how could one decrypt and encrypt files using readily available, lightweight, libre, open source, audited, cross platform *nix command line utilities - preferably either gpg
or openssl
(and md5sum
, coreutils, et. al.) - that were created by / for use with Godot's File.open_encrypted_with_pass / FileAccess.open_encrypted_with_pass? Explanations or guidance in any programming language or puesdocode are also welcome insofar as the crypto API is simple and understandable.
Additionally, focus on decryption would be preferable over encryption - I can handle the rest once given a few pointers. Likewise, checksum verification for decryption is not required.
Here are some links to relevant sections of code I found. Unfortunately I do not understand C++ thoroughly enough to be able to implement this myself.
- FileAccess::_bind_methods
- FileAccess::open_encrypted_pass
- FileAccessEncrypted::open_and_parse_password
- FileAccessEncrypted::open_and_parse
- FileAccessEncrypted::_close
Thank you for your valuable time and assistance.
Edit: Please re-tag / move this topic if necessary.