Finished commenting BeEF core. From this point on each developer should be commenting their own core changes
git-svn-id: https://beef.googlecode.com/svn/trunk@1362 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -13,21 +13,18 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
module BeEF
|
||||
module Core
|
||||
#
|
||||
# This module provides crypto functionality
|
||||
#
|
||||
|
||||
module Crypto
|
||||
|
||||
# the minimum length of the security token
|
||||
# @note the minimum length of the security token
|
||||
TOKEN_MINIMUM_LENGTH = 15
|
||||
|
||||
#
|
||||
# Generate a secure random token
|
||||
#
|
||||
# @param: {Integer} the length of the secure token
|
||||
#
|
||||
# @param [Integer] len The length of the secure token
|
||||
# @return [String] Security token
|
||||
def self.secure_token(len = nil)
|
||||
# get default length from config
|
||||
config = BeEF::Core::Configuration.instance
|
||||
|
||||
Reference in New Issue
Block a user