Exploit databaseDownload repository ZIP
GH-4d1b94b6b57362be3a3a6e5a2eacc47d
sassoftware/shiro
Sources for CVE-2026-49268
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files16
sassoftware/shiroRevision 6584564cfe08
- ↑..Parent directory
- format/
- AbstractHash.java
- ConfigurableHashService.java
- DefaultHashService.java
- Hash.java
- HashRequest.java
- HashService.java
- Md2Hash.java
- Md5Hash.java
- Sha1Hash.java
- Sha256Hash.java
- Sha384Hash.java
- Sha512Hash.java
- SimpleHash.java
- SimpleHashRequest.java
- package-info.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
crypto/hash/src/main/java/org/apache/shiro/crypto/hash/Md2Hash.java
Java · 2,056 bytes/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.shiro.crypto.hash;
import org.apache.shiro.codec.Base64;
import org.apache.shiro.codec.Hex;
/**
* Generates an MD2 Hash (RFC 1319) from a given input <tt>source</tt> with an optional <tt>salt</tt> and
* hash iterations.
* <p/>
* See the {@link SimpleHash SimpleHash} parent class JavaDoc for a detailed explanation of Hashing
* techniques and how the overloaded constructors function.
*
* @since 0.9
*/
public class Md2Hash extends SimpleHash {
public static final String ALGORITHM_NAME = "MD2";
public Md2Hash() {
super(ALGORITHM_NAME);
}
public Md2Hash(Object source) {
super(ALGORITHM_NAME, source);
}
public Md2Hash(Object source, Object salt) {
super(ALGORITHM_NAME, source, salt);
}
public Md2Hash(Object source, Object salt, int hashIterations) {
super(ALGORITHM_NAME, source, salt, hashIterations);
}
public static Md2Hash fromHexString(String hex) {
Md2Hash hash = new Md2Hash();
hash.setBytes(Hex.decode(hex));
return hash;
}
public static Md2Hash fromBase64String(String base64) {
Md2Hash hash = new Md2Hash();
hash.setBytes(Base64.decode(base64));
return hash;
}
}