Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ciphers/base64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub fn base64_decode(data: &str) -> Result<Vec<u8>, (&str, u8)> {
'decodeloop: loop {
while collected_bits < 8 {
if let Some(nextbyte) = databytes.next() {
// Finds the first occurence of the latest byte
// Finds the first occurrence of the latest byte
if let Some(idx) = CHARSET.iter().position(|&x| x == nextbyte) {
byte_buffer |= ((idx & 0b00111111) as u16) << (10 - collected_bits);
collected_bits += 6;
Expand Down