mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-07 09:04:05 +09:00
Lua Computer: collection of minor updates, none notable (read romapidoc)
Former-commit-id: 80e3f0d13c2dc5bcff0843e509f416e9314cd52e Former-commit-id: e7e35bfd23d70db84f568f0c5388f3a1d89222bc
This commit is contained in:
20
work_files/romapidoc/api_security.tex
Normal file
20
work_files/romapidoc/api_security.tex
Normal file
@@ -0,0 +1,20 @@
|
||||
The Serurity API provides functions for security purposes, such as hashing and CSPRNG\footnote{Cryptographically secure psuedo-random number generator}.
|
||||
|
||||
\subsection{Functions}
|
||||
|
||||
\begin{tabularx}{\textwidth}{l l X}
|
||||
\textbf{\large Function} & \textbf{\large Return} & \textbf{\large Description}
|
||||
\\ \\
|
||||
\endhead
|
||||
security.toSHA1(string) & string & Returns SHA-256 hash of input string in array of bytes (as a string)
|
||||
\\ \\
|
||||
security.toSHA256(string) & string & Returns SHA-1 hash of input string in array of bytes
|
||||
\\ \\
|
||||
security.toMD5(string) & string & Returns MD-5 hash of input string in array of bytes
|
||||
\\ \\
|
||||
security.randomBytes(\textbf{len}: int) & string & Returns byte array of random values in desired \textbf{len}gth.
|
||||
\\ \\
|
||||
security.decodeBase64(string) & string & Decodes Base64 string and returns the result as string.
|
||||
\\ \\
|
||||
security.encodeBase64(string) & string & Encodes input string as Base64 format and returns the result as array of bytes.
|
||||
\end{tabularx}
|
||||
Reference in New Issue
Block a user