-
Notifications
You must be signed in to change notification settings - Fork 1
Home
This wiki will be showing you how you can use PriSecFileStorage API.
Please browse the right hand side for more information.
Before you read the documentation, there's something I would like to inform, which is regarding the data type in C# and their representative in other language.
It's hard to explain between the differences of mutable and immutable data type. However, in cryptography, we generally uses mutable data type as they are safer to clear in memory as opposed to immutable data type.
-
Byte[] (mutable data type)
Other language representatives includeunsigned char[]
(c) orchar[]
(most languages) oruint8_t[]
(c/c++) oruint8[]
(c/c++) orbyte[]
(Java) -
char[] (mutable data type)
Other language representatives includeunsigned char[]
(c) orchar[]
(most languages) oruint8_t[]
(c/c++) oruint8[]
(c/c++) orbyte[]
(Java) -
IntPtr (pointer)
Other language representatives includevariable**
(c/c++) -
String (immutable)
Other languages do support string.
In my applications, you will realized that I use all the data types described here excluding the char[]. Most of the data are all processed in either IntPtr or Byte[]. You will need to find your own workaround to the data type used.
As you might not be coding it in C#, you might need to have "Language interoperability" skill. These features are locked until you are able to use "libsodium" open source cryptography library or any other applicable cryptography library that can work well with libsodium. This skill is required as the other "language binding" of "libsodium" might be outdated of deprecated.