¿Qué tal algo así?
http://jsbin.com/eweti5
Código:
Código HTML:
Ver original<!DOCTYPE html>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> #mensaje{
background:transparent;
color:inherit;
border:0;
outline:0;
}
$(function(){
var input_mensaje = $('#mensaje');
var mensaje = input_mensaje.val();
var oculto = mensaje.replace(/./g,'*');
input_mensaje.select(function(){
$(this).val(mensaje);
}).val(oculto).focusout(function(){
$(this).val(oculto);
});
});
<input type="text" id="mensaje" value="Mensaje Escondido" />
Tiene sus limitaciones, claro. Podría trabajarse un poco más y tratar de obtener el texto que se ha seleccionado, aunque eso es un trabajo difícil de compatibilidad cross-browser.