Skip to content
Chrono edited this page Sep 13, 2021 · 4 revisions

Welcome to the PriSecFileStorage wiki!

This wiki will be showing you how you can use PriSecFileStorage API.

Please browse the right hand side for more information.

Note

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.

  1. Byte[] (mutable data type)
    Other language representatives include unsigned char[](c) or char[](most languages) or uint8_t[](c/c++) or uint8[](c/c++) or byte[](Java)

  2. char[] (mutable data type)
    Other language representatives include unsigned char[](c) or char[](most languages) or uint8_t[](c/c++) or uint8[](c/c++) or byte[](Java)

  3. IntPtr (pointer)
    Other language representatives include variable**(c/c++)

  4. 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.

Skills(Technical)

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.