How do Godot encrypt works and how to achieve the same manually?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JulioYagami

I saw that Godot encrypts files with a pass and I wanted to do the same manually (and the output files could be open with Godot).

:bust_in_silhouette: Reply From: Decibelter

Godot uses AES 256 to encrypt / decrypt, you can see the implementation here: https://github.com/godotengine/godot/blob/master/core/io/file_access_encrypted.h