diff options
Diffstat (limited to 'apps/files/src/utils/hashUtils.ts')
-rw-r--r-- | apps/files/src/utils/hashUtils.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/src/utils/hashUtils.ts b/apps/files/src/utils/hashUtils.ts index 607064947a8..2e1fadff067 100644 --- a/apps/files/src/utils/hashUtils.ts +++ b/apps/files/src/utils/hashUtils.ts @@ -3,6 +3,11 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ +/** + * Simple non-secure hashing function similar to Java's `hashCode` + * @param str The string to hash + * @return {number} a non secure hash of the string + */ export const hashCode = function(str: string): number { let hash = 0 for (let i = 0; i < str.length; i++) { |