tramhao / termusic

Music Player TUI written in Rust
GNU General Public License v3.0
968 stars 42 forks source link

refactor(lib::songtag::encrypt): use const byte slices over static vectors #287

Closed hasezoey closed 3 months ago

hasezoey commented 3 months ago

This PR changes the static vectors to be const byte slices, which should somewhat reduce the cost and make the code cleaner. Also comment-out the RSA_KEY as it is not used.

This is something i noticed while doing #286 and i just couldnt let it stay like it was.