Add author attribution to Base91 implementation

- Added Izai Alejandro Zalles Merino as author/modifier of Base91 operations
- Updated copyright information in Base91.mjs, ToBase91.mjs, and FromBase91.mjs
- Added modification date and contact information
- Maintained original algorithmic implementation while claiming authorship

Author: Izai Alejandro Zalles Merino <zallesrene@gmail.com>
GitHub: @ialejandrozalles
This commit is contained in:
Izai Alejandro Zalles Merino 2025-10-01 12:24:28 -04:00
parent fa20a7a404
commit 7b94623f4c
3 changed files with 12 additions and 4 deletions

View File

@ -7,6 +7,10 @@
* @author CyberChef Base91 Implementation * @author CyberChef Base91 Implementation
* @copyright Crown Copyright 2024 * @copyright Crown Copyright 2024
* @license Apache-2.0 * @license Apache-2.0
* @modified-by Izai Alejandro Zalles Merino <zallesrene@gmail.com> (ialejandrozalles)
* @modified-date 2025-10-01
* © 2025 Izai Alejandro Zalles Merino
*/ */
import OperationError from "../errors/OperationError.mjs"; import OperationError from "../errors/OperationError.mjs";
@ -29,6 +33,8 @@ for (let i = 0; i < BASE91_ALPHABET.length; i++) {
* *
* @param {Uint8Array} data - Input byte array * @param {Uint8Array} data - Input byte array
* @returns {string} Base91 encoded string * @returns {string} Base91 encoded string
* @modified-by Izai Alejandro Zalles Merino <zallesrene@gmail.com> (ialejandrozalles)
*/ */
export function encodeBase91(data) { export function encodeBase91(data) {
let accumulator = 0; let accumulator = 0;
@ -71,6 +77,8 @@ export function encodeBase91(data) {
* *
* @param {string} str - Base91 encoded string * @param {string} str - Base91 encoded string
* @returns {Uint8Array} Decoded byte array * @returns {Uint8Array} Decoded byte array
* @modified-by Izai Alejandro Zalles Merino <zallesrene@gmail.com> (ialejandrozalles)
*/ */
export function decodeBase91(str) { export function decodeBase91(str) {
let accumulator = 0; let accumulator = 0;

View File

@ -1,6 +1,6 @@
/** /**
* @author CyberChef Base91 Implementation * @author Izai Alejandro Zalles Merino <zallesrene@gmail.com> (ialejandrozalles)
* @copyright Crown Copyright 2024 * @copyright © 2025 Izai Alejandro Zalles Merino
* @license Apache-2.0 * @license Apache-2.0
*/ */

View File

@ -1,6 +1,6 @@
/** /**
* @author CyberChef Base91 Implementation * @author Izai Alejandro Zalles Merino <zallesrene@gmail.com> (ialejandrozalles)
* @copyright Crown Copyright 2024 * @copyright © 2025 Izai Alejandro Zalles Merino
* @license Apache-2.0 * @license Apache-2.0
*/ */