Click or drag to resize

FileOpenEncrypted Method

Opens an encrypted file in write or read mode. You need to pass a binary key to encrypt/decrypt it.

Note: The provided key must be 32 bytes long.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Error OpenEncrypted(
	string path,
	FileModeFlags modeFlags,
	byte[] key
)

Parameters

path
Type: SystemString

[Missing <param name="path"/> documentation for "M:Godot.File.OpenEncrypted(System.String,Godot.File.ModeFlags,System.Byte[])"]

modeFlags
Type: GodotFileModeFlags

[Missing <param name="modeFlags"/> documentation for "M:Godot.File.OpenEncrypted(System.String,Godot.File.ModeFlags,System.Byte[])"]

key
Type: SystemByte

[Missing <param name="key"/> documentation for "M:Godot.File.OpenEncrypted(System.String,Godot.File.ModeFlags,System.Byte[])"]

Return Value

Type: Error

[Missing <returns> documentation for "M:Godot.File.OpenEncrypted(System.String,Godot.File.ModeFlags,System.Byte[])"]

See Also