Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

U65535F/Moonstone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moonstone

A cipher based on XOR cipher.
It uses key, last number and length of data to decrypt the data.
Try to avoid this cipher in applications where security is crucial, It's recommended to use other strong cipher like AES, ChaCha, RSA, etc.
Use this cipher for educational purposes and in small non-commericial applications.

WARNING! This tool might result some unicode characters which can possibly corrupt the stdout, so It's save the output in files instead of printing it to console.

How to use?

Cipher

moonstone_cipher(tchr* dest, tchr* key, uint64_t* last_randnum, uint64_t* last_len)

Parameters: dest = point to array contain a plain text. key = point to array contain a key. last_randnum = point to uint64_t variable that will receive last number. last_len = point to uint64_t variable that will receive length of data.

Decipher

moonstone_decipher(tchr* dest, tchr* key, uint64_t last_randnum, uint64_t last_len)

Parameters: dest = point to array contain a cipher text. key = point to array contain a key. last_randnum = point to uint64_t variable that will used in decipher process. last_len = point to uint64_t variable that will used in decipher process.

Result

The result of ciphered text are different each sequence.
Sequence 1:

Encrypted =>73P����s: s�V������H���AR_�������M��	��32v7����xnix$ %%�	�F�����]	�WDE�2$2*V��V���G����GV__�����M(�����#%xv$��P?94910i �F�����SAA@\����?:4;�[�����G	���@@�������M���J��:0v%�
�P7>x,!,i��

�S$�
P��P����ccczXV?�G��G	H�
^QVAP��P���M/���78#%P3��+,=*ei(i�
�����S<5saFFV������
�F�zG����P	�������32v4	P:�06x�,;:*��
F��SBlgaz

Decrypted =NGC 1300 is a barred spiral galaxy located about 61 million light-years away in the constellation Eridanus. The galaxy is about 110,000 light-years across (about the half size of the Milky Way at 200,000). It is a member of the Eridanus Cluster, a cluster of 200 galaxies. It was discovered by John Herschel in 1835.

Sequence 2:

Encrypted ==40S\^]]�PJ�6w56����P�

Decrypted =NGC 1300 is a barred spiral galaxy located about 61 million light-years away in the constellation Eridanus. The galaxy is about 110,000 light-years across (about the half size of the Milky Way at 200,000). It is a member of the Eridanus Cluster, a cluster of 200 galaxies. It was discovered by John Herschel in 1835.

Credits

This code is written by some unknown person and not me. This is just an archive of code.

About

A cipher based on XOR cipher

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages