Chacha20 Encryption on the 6502

In this forum you can write about anything that does not fit in other forums.
This includes generic Oric talkings and things that are totaly unrelated but want to share with people here :)
User avatar
jacqu
Pilot Officer
Posts: 70
Joined: Sun Nov 27, 2022 4:42 pm
Location: Alsace, France
Contact:

Chacha20 Encryption on the 6502

Post by jacqu »

Hi,

After reading this excellent article about porting a lightweight yet powerful encryption algorithm to the PDP-11:

https://niconiconi.neocities.org/posts/ ... on-pdp-11/

I took on the challenge of porting it to an Oric and comparing the relative performance. In the end, the Oric holds up reasonably well, being about six times slower than the PDP-11. I’ve made the code publicly available on GitHub at:

https://github.com/jacqu/chacha20-6502

This algorithm is remarkable for its simplicity. It is used in systems with limited CPU resources but that require high levels of security. It has been integrated into the Linux kernel and, as far as I know, is still considered perfectly secure to this day.
Capture d’écran 2025-01-10 à 17.19.10.png
Old French Oric Atmos Nerd
User avatar
iss
Wing Commander
Posts: 1782
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: Chacha20 Encryption on the 6502

Post by iss »

This is interesting. Well done!
Post Reply